package shuai.action;


public class UserAction extends BaseAction {
	private String username;
	private String password;
	public String login(){
		if("admin".equals(username)&&"admin".equals(password)){
			getMapRequest().put("username",username);
			return SUCCESS;
		}else{
			return ERROR;
		}
			
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	
	

}
